package com.hssy.wululuaplan.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
@ApiModel("缴费新增修改表单")
public class PaymentInsertUpdateForm {

    @ApiModelProperty("主键")
    private Integer id;

    @NotBlank(message = "订单生成时间不能为空")
    @ApiModelProperty("订单号时间")
    private String orderNoDate;

    @ApiModelProperty("学生id")
    private Integer studentId;

    @NotBlank(message = "费用项目不能为空")
    @ApiModelProperty("费用项目")
    private String expenseItem;

    @Min(value = 1, message = "课时最少为1")
    @ApiModelProperty("购买时长")
    private Integer duration;

    @Min(value = 0, message = "费用最低为0")
    @NotNull(message = "费用不能为空")
    @ApiModelProperty("费用（元）")
    private BigDecimal cost;
}
